package com.xuecheng.content.agent;

import com.xuecheng.api.media.model.dto.MediaDTO;
import com.xuecheng.common.constant.XcFeignServiceNameList;
import com.xuecheng.common.domain.response.RestResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 内容管理对媒资的 Feign 远程调用
 */
@FeignClient(value = XcFeignServiceNameList.XC_MEDIA_SERVICE)
public interface MediaApiAgent {

    String pre_fix = "/media/";

    @GetMapping(pre_fix + "l/media/{mediaId}")
    RestResponse<MediaDTO> getMediaById4Service(@PathVariable("mediaId") Long mediaId);
}
